package com.f1ashback.bus.common;

public class ThreadUtils {

    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setUserId(Long userId) {
        threadLocal.set(userId);
    }

    public static Long getUserId() {
        return threadLocal.get();
    }

    public static void removeId() {
        threadLocal.remove();
    }
}
